package com.jsbj.tools;

/**
 * 读入excle表头定义
 * 
 * @author make
 * 
 */
public class ReadExcleDefine {

	/**
	 * 字段名称
	 */
	private String name;
	/**
	 * 是否可以为空,true为可以为空
	 */
	private boolean nullable;
	/**
	 * 字段类型
	 */
	private String type;
	/**
	 * 最大长度
	 */
	private int maxLength;
	/**
	 * 最大值,Ineger时候可以设置
	 */
	private Integer maxValue;

	public ReadExcleDefine() {
	}
	
	public ReadExcleDefine(String name, boolean nullable, String type,
                           int maxLength, Integer maxValue) {
		this.name = name;
		this.nullable = nullable;
		this.type = type;
		this.maxLength = maxLength;
		this.maxValue=maxValue;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isNullable() {
		return nullable;
	}

	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getMaxLength() {
		return maxLength;
	}

	public void setMaxLength(int maxLength) {
		this.maxLength = maxLength;
	}

	public Integer getMaxValue() {
		return maxValue;
	}

	public void setMaxValue(Integer maxValue) {
		this.maxValue = maxValue;
	}

}
